
<!--
        1.script标签 引入js  <script type="text/javascript">
        2.引入js文件
        3.1和2两种方式二选一，不能同时使用

-->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="demo1.js"></script>
</head>
<body>
<div>div标签</div>
<!--<script type="text/javascript">alert(/xss/)</script>-->
<span>span标签</span>

<p>p标签</p>

</body>
</html>